//
//  Dog.m
//  Homework4
//
//  Created by 王佩 on 15/9/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Dog.h"

@implementation Dog
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.color = [aDecoder decodeObjectForKey:@"color"];
        self.breed = [aDecoder decodeObjectForKey:@"breed"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.color forKey:@"color"];
    [aCoder encodeObject:self.breed forKey:@"breed"];
}

@end
